package com.graduate.mapper;

import com.graduate.po.PagingVO;
import com.graduate.po.Payment;
import com.graduate.po.PaymentCustom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentMapperCustom {
    List<PaymentCustom> findByPaging(PagingVO pagingVO) throws Exception;
    List<PaymentCustom> findByPagingEach(@Param("userName") String userName) throws Exception;
    void updateBalance(Payment payment) throws Exception;
    int findPaymentCountByUserName(@Param("userName") String userName) throws Exception;
    int getPaymentCountByUserID(Integer userID) throws Exception;
    List<PaymentCustom> findByPagingEachByID(Integer id, PagingVO toPageNo) throws Exception;
}
